﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ImperialUtilities.Exceptions
{
    public class ImperialException : Exception
    {
        private Exception _e;
        private string _imperialMessage;

        public ImperialException(string imperialMessage, Exception e)
        {
            _e = new Exception();
            _e = e;
            _imperialMessage = imperialMessage;
        }

        public ImperialException(string imperialMessage)
        {
            _e = new Exception();
            _imperialMessage = imperialMessage;
        }

        public string ImperialMessage
        {
            get { return _imperialMessage; }
            set { _imperialMessage = value; }
        }

        public Exception MainException
        {
            get { return _e; }
            set { _e = value; }
        }
    }
}
